/*
 * Copyright 2009 Eat Local Food, LLC
 *
 * This file is part of gwtCommerce.
 *
 * gwtCommerce is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * gwtCommerce is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gwtCommerce.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.elf.gwt.common.client.access;

import java.util.List;

import com.google.gwt.json.client.JSONValue;


/**
 * Interface for handling callback from JSONServerAccess
 */

public interface JSONServerAccessCallback
{
	void onError(List<RequestParameter> requestParameterList, Throwable exception);
	void onResponseReceived(List<RequestParameter> requestParameterList, JSONValue jsonValue);
}
